<template>
  <div class="index">
    <text>首页</text>
    <uni-section title="基础用法" type="line" padding>
      <view class="example-body">
        <uni-badge class="uni-badge-left-margin" text="1" />
        <uni-badge class="uni-badge-left-margin" text="2" type="primary" />
        <uni-badge class="uni-badge-left-margin" text="34" type="success" />
        <uni-badge class="uni-badge-left-margin" text="45" type="warning" />
      </view>
    </uni-section>
  </div>
</template>

<script lang="ts" setup></script>

<style lang="scss" scoped>
// @import '@/uni.scss';
.test-class {
  @include text-overflow(2);
}

.example-body {
  flex-direction: row;
  justify-content: flex-start;
}
.uni-badge-left-margin {
  margin-left: 10px;
}
</style>
